import request from '@/utils/request'

// 查询文标关联列表
export function listRelevance(query) {
  return request({
    url: '/relevance/relevance/list',
    method: 'get',
    params: query
  })
}

// 查询文标关联详细
export function getRelevance(id) {
  return request({
    url: '/relevance/relevance/' + id,
    method: 'get'
  })
}

// 新增文标关联
export function addRelevance(data) {
  return request({
    url: '/relevance/relevance',
    method: 'post',
    data: data
  })
}

// 修改文标关联
export function updateRelevance(data) {
  return request({
    url: '/relevance/relevance',
    method: 'put',
    data: data
  })
}

// 删除文标关联
export function delRelevance(id) {
  return request({
    url: '/relevance/relevance/' + id,
    method: 'delete'
  })
}
